﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OCRTheNewHope
{
    public static class Temprorary
    {
        public static Digit[] TranslateDB(string inputPath, string outputPath)
        {
            Digit[] rVal;

            var inputs = OldFileOperations.ReadImages(inputPath);
            var outputs = OldFileOperations.ReadLabels(outputPath);

            int numItems = inputs.Length;

            rVal = new Digit[numItems];

            for (int i = 0; i < rVal.Length; i++)
            {
                rVal[i] = new Digit(i, (byte)outputs[i], inputs[i]);
            }

            return rVal;
        }
    }
}
